using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using CjaxExam.Models.Entities;
using CjaxExam.Models.Interfaces;
using System.Collections;
using System.Threading;
using System.Text.RegularExpressions;
using System.Data;

namespace CjaxExam.Controllers
{
    public class AjaxController : Controller
    {
        //
        // GET: /Ajax/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult CheckUserName(string name)
        {
            ForExam check = new ForExam();
            string mess = check.GetName(name);
            string result = "{message:'"+mess+"'}";
            return Content(result);
        }

    }
}
